package com.mimaxueyuan.disruptor.demo5;

import com.lmax.disruptor.ExceptionHandler;

public class LongEventExceptionHdanler implements ExceptionHandler<LongEvent> {

	@Override
	public void handleEventException(Throwable ex, long sequence, LongEvent event) {
		System.out.println(Thread.currentThread().getName() + "LongEventExceptionHdanler.handleEventException");
	}

	@Override
	public void handleOnStartException(Throwable ex) {
		System.out.println(Thread.currentThread().getName() + "LongEventExceptionHdanler.handleOnStartException");
	}

	@Override
	public void handleOnShutdownException(Throwable ex) {
		System.out.println(Thread.currentThread().getName() + "LongEventExceptionHdanler.handleOnShutdownException");
	}

}
